package lucid.hrms.management.language;

import java.util.List;

import org.codehaus.grepo.core.annotation.Param;
import org.codehaus.grepo.query.commons.annotation.FirstResult;
import org.codehaus.grepo.query.commons.annotation.GenericQuery;
import org.codehaus.grepo.query.commons.annotation.MaxResults;
import org.codehaus.grepo.query.hibernate.annotation.HibernateQueryOptions;
import org.codehaus.grepo.query.hibernate.repository.ReadWriteHibernateRepository;
import org.springframework.stereotype.Repository;

@Repository("languageRepository")
public interface LanguageRepository extends ReadWriteHibernateRepository<Language, Long> {
	@GenericQuery
	@HibernateQueryOptions(criteriaGenerator = LanguageCriteriaGenerator.class)
	List<Language> findNationalities(@Param("languageCriteria") LanguageCriteria languageCriteria, @FirstResult int firstResult,
			@MaxResults int maxResults);
}